#include <global.h>
#include <segment.h>

void
draw_segment (CairoContext *context, Segment segment)
{
	//draw_control_list (context, segment.points, 2, CIRCLE);

	cairo_move_to (context, segment.points[0].x, segment.points[0].y);
	cairo_line_to (context, segment.points[1].x, segment.points[1].y);

	cairo_set_source_rgb (context, 0.0, 0.0, 0.0);
	cairo_stroke (context);
}
